Density of an Ideal Gas calculation